home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
VISUALBA
/
NIFTOM.ZIP
/
NIFTODEM.FRM
< prev
next >
Wrap
Text File
|
1994-02-14
|
3KB
|
118 lines
VERSION 2.00
Begin Form NiftoMeterDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "NiftoMeter Demo"
Height = 4245
Icon = NIFTODEM.FRX:0000
Left = 1020
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3555
ScaleWidth = 6570
Top = 1140
Width = 6690
Begin HScrollBar Scroller
Height = 315
LargeChange = 10
Left = 120
Max = 100
TabIndex = 1
Top = 3060
Width = 4095
End
Begin NiftoMeter NiftoMeter3
BackColor = &H00FFFFFF&
BevelInner = 1 'Inset
BevelOuter = 2 'Raised
BevelWidth = 2
BorderStyle = 0 'None
BorderWidth = 2
ForeColor = &H00FF0000&
Height = 555
Left = 120
Top = 120
Width = 4095
End
Begin NiftoMeter NiftoMeter2
BackColor = &H0000FFFF&
BevelInner = 1 'Inset
BevelOuter = 0 'None
BevelWidth = 2
BorderStyle = 0 'None
BorderWidth = 0
Height = 2775
Left = 4380
Top = 120
Width = 1995
End
Begin CommandButton Demo
BackColor = &H00C0C0C0&
Caption = "&Demo"
Height = 375
Left = 4380
TabIndex = 0
Top = 3060
Width = 1995
End
Begin NiftoMeter NiftoMeter1
BackColor = &H000000FF&
BevelInner = 2 'Raised
BevelOuter = 1 'Inset
BevelWidth = 2
BorderStyle = 0 'None
BorderWidth = 4
FontBold = -1 'True
FontItalic = -1 'True
FontName = "Arial"
FontSize = 13.5
FontStrikethru = 0 'False
FontUnderline = 0 'False
ForeColor = &H0000FF00&
Height = 2115
Left = 120
Top = 780
Width = 4095
End
Begin Menu mnuHelp
Caption = "&Help!"
End
End
Option Explicit
Const HELP_CONTENTS = &H3 ' Display Help for a particular topic
Declare Function WinHelp Lib "User" (ByVal hWnd As Integer, ByVal lpHelpFile As String, ByVal wCommand As Integer, dwData As Long) As Integer
Sub Demo_Click ()
Dim i As Integer
For i = 0 To 100
NiftoMeter1.CompletedItems = i
NiftoMeter2.CompletedItems = i
NiftoMeter3.CompletedItems = i
Next i
For i = 100 To 0 Step -1
NiftoMeter1.CompletedItems = i
NiftoMeter2.CompletedItems = i
NiftoMeter3.CompletedItems = i
Next i
End Sub
Sub Form_Unload (Cancel As Integer)
End
End Sub
Sub mnuHelp_Click ()
Dim i As Integer
i = WinHelp(hWnd, "niftomet.hlp", HELP_CONTENTS, 0)
End Sub
Sub Scroller_Change ()
NiftoMeter1.CompletedItems = Scroller.Value
NiftoMeter2.CompletedItems = Scroller.Value
NiftoMeter3.CompletedItems = Scroller.Value
End Sub